package info.ms.neural.degrade;

import info.ms.neural.degrade.runner.IDegradeRunner;
import info.ms.neural.engine.entity.NeuralConf;

/**
 * 业务服务降级
 * 
 * @author lry
 */
public interface IBizDegrade<REQ, RES> {

	/**
	 * 业务降级
	 * 
	 * @param conf
	 * @param runner
	 * @param req
	 * @return
	 * @throws Throwable
	 */
	RES biz(NeuralConf conf, IDegradeRunner<REQ, RES> runner, REQ req) throws Throwable;
	
}
